<div class="layui-card-body ">
    <form id="layer-form" style="margin-top: 15px;" class="layui-form" action="{{route('system.site.store')}}">
        @csrf
        <div class="layui-form-item">
            <label class="layui-form-label">单位名称</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="data[name]" autocomplete="off" placeholder="请输入单位名称"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">站点状态</label>
            <div class="layui-input-block">
                <select id="type" name="data[status]">
                    {!! Code::getOptionsByCode('SITE_STATUS') !!}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">截止日期</label>
            <div class="layui-input-block">
                <input type="text" name="data[expire_at]" id="date" lay-verify="date" placeholder="yyyy-MM-dd"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['form', 'laydate'], function () {
        var form = layui.form
            , laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date',
            trigger: 'click'
        });
    });
</script>
